﻿namespace WeWork.Model
{
    /// <summary>
    /// 音视频通话
    /// </summary>
    public class ChatVoipText : MsgChatRoomBase
    {
        /*
        {
            "msgid":"10950316726562067988_1666601563058",
            "action":"send",
            "from":"icef",
            "tolist":["WoBeiQi..."],
            "roomid":"",
            "msgtime":1666601558876,
            "msgtype":"voiptext",
            "info":{
                "callduration":9,
                "invitetype":2
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public VoipTextInfo info { set; get; }
    }

    public class VoipTextInfo
    {
        /// <summary>
        /// 通话时长，单位秒，uint32类型
        /// </summary>
        public int callduration { set; get; }
        /// <summary>
        /// 通话类型，uint32类型  1;单人视频通话 2;单人语音通话 3;多人视频通话 4;多人语音通话
        /// </summary>
        public int invitetype { set; get; }
    }
}
